project(tinyDHCP CXX)
cmake_minimum_required(VERSION 2.6)
set(REQUIRED_LIBRARIES boost_thread)
set(tinyDHCP_SRCS main.cpp SocketUDP.hpp SocketUDP.cpp PacketEditor.hpp PacketEditor.cpp Option.hpp Option.cpp Logger.hpp Logger.cpp Settings.hpp Settings.cpp ConfigParser.hpp ConfigParser.cpp DHCPServer.hpp DHCPServer.cpp MacIP.hpp MacIP.cpp NetUtils.hpp NetUtils.cpp MacIPTimes.hpp MacIPTimes.cpp)
message(STATUS "System: " ${CMAKE_SYSTEM_NAME} " " ${CMAKE_SYSTEM_VERSION})
message(STATUS "Processor: " ${CMAKE_HOST_SYSTEM_PROCESSOR})
if(${CMAKE_SYSTEM_NAME} STREQUAL Windows)
if(MSVC)
message(STATUS "Compiler: MSVC, version: " ${MSVC_VERSION})
endif(MSVC)
if(BORLAND) 
message(STATUS "Compiler: BCC") 
endif(BORLAND) 
else(${CMAKE_SYSTEM_NAME} STREQUAL Linux) 
message(STATUS "Only GCC is supported on Linux")
endif(${CMAKE_SYSTEM_NAME} STREQUAL Windows) 
message(STATUS "CMake generates " ${CMAKE_GENERATOR})
add_executable(tinyDHCP ${tinyDHCP_SRCS})
target_link_libraries( tinyDHCP ${REQUIRED_LIBRARIES} )